
' Copyright (c) 2015 ZZZ Projects. All rights reserved
' Licensed under MIT License (MIT) (https://github.com/zzzprojects/Z.ExtensionMethods)
' Website: http://www.zzzprojects.com/
' Feedback / Feature Requests / Issues : http://zzzprojects.uservoice.com/forums/283927
' All ZZZ Projects products: Entity Framework Extensions / Bulk Operations / Extension Methods /Icon Library

Public Module Extensions_501

	''' <summary>
	'''     A string extension method that if empty.
	''' </summary>
	''' <param name="value">The value to act on.</param>
	''' <param name="defaultValue">The default value.</param>
	''' <returns>A string.</returns>
	<System.Runtime.CompilerServices.Extension> _
	Public Function IfEmpty(value As String, defaultValue As String) As String
		Return (If(value.IsNotEmpty(), value, defaultValue))
	End Function
End Module


